import http from './http.js'

// 列表
const userList = (pageNumber,pageSize) => {
  return http.get('/users',{
    params:{
      pageNumber,
      pageSize,
    }
  })
}

//修改状态
const userStatus = (status,ids) => {
  return http.put(`/users/${status}`,{ids})
}

export default {
  userList,
  userStatus
}